package com.example.adapter.demo.login.v3.adapter;

import com.example.adapter.demo.login.v3.PassportService;
import com.example.adapter.demo.login.v3.ResultMsg;

/**
 * @author zhoubin
 */
public abstract class AbstractAdapter extends PassportService implements ILoginAdapter {

    protected ResultMsg loginForRegist(String username, String password) {
        if (null == password) {
            password = "THIRD_EMPTY";
        }
        super.regist(username, password);
        return super.login(username, password);
    }

}
